diff options
| author | Adam Soltys <[email protected]> | 2024-08-31 15:23:49 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-08-31 15:23:49 -0700 |
| commit | e11b199080b4b295dfb7b95187275565bce9c35a (patch) | |
| tree | 46098814beabc79de334898dbc4808aed8d5f329 /src/routes/(app)/[username]/(profile) | |
| parent | c9acca0218d47226c567da62c4a8bf97691c9b0d (diff) | |
| download | coinos-ui-e11b199080b4b295dfb7b95187275565bce9c35a.tar.gz coinos-ui-e11b199080b4b295dfb7b95187275565bce9c35a.zip | |
typescript
Diffstat (limited to 'src/routes/(app)/[username]/(profile)')
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/event/[id]/+page.server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/(app)/[username]/(profile)/event/[id]/+page.server.ts b/src/routes/(app)/[username]/(profile)/event/[id]/+page.server.ts index 42c568c5..baeab3d7 100644 --- a/src/routes/(app)/[username]/(profile)/event/[id]/+page.server.ts +++ b/src/routes/(app)/[username]/(profile)/event/[id]/+page.server.ts @@ -6,7 +6,7 @@ export async function load({ params: { id } }) { let event = await get(`/event/${id}`); if (!event) error(500, "Event not found"); return { event }; - } catch (e: Error) { + } catch (e: any) { error(500, e.message); } } |
